package com.aisilesn.spit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * @Author: Mr.liu
 * @Description:
 * @Date: Create in 20:35 2019/5/4
 */
@SpringBootApplication
public class SpitApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpitApplication.class,args);
    }
    //配置雪花算法生成ID
    @Bean
    public IdWorker idWorker(){
        return  new IdWorker(1,1);
    }
}
